import { createSSRApp } from 'vue'
import App from './App.vue'
import VConsole from 'vconsole'
import 'virtual:windi.css'

export function createApp() {
  const app = createSSRApp(App)

  // 将所有标签前缀为 `ion-` 的标签视为自定义元素
  // app.config.compilerOptions.isCustomElement = (tag) => {
  //   return tag.startsWith('wx-')
  // }

  process.env.NODE_ENV === 'development' && new VConsole()
  // new VConsole()
  return {
    app,
  }
}
